<div class="page-profile">
  <div class="w">
    <div class="user-tips">您能采购的商品以您所在地区的物流营销中心实际库存为准。</div>
    <div ng-include="'catalog/view/theme/bhz/pc/modules/includes/usernav.html'" ng-controller="UserNavCtrl" class="bhz-user-nav-wrap"></div>
    <div class="profile-page-wrap">
        <form class="bhz-form"   enctype="multipart/form-data">
        	  <div class="profile-main">

        	  	 <div class="form-group avatar"  ng-if="!requiredOnly" >
        	  	 	 <label class="label-phone">我的头像：</label>
                     <span>
                 	    <img ng-src="{{profile.avatar}}">  
                     </span> 
        	  	 </div>

        	  	 <div ng-if="!requiredOnly" class="form-group  gender">
        	  	   <label class="label-sex"> <span class="star">*</span>  性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</label>
                   <label>  <input type="radio"  name="gender" ng-model="profile.gender" value="0" />男 </label> &nbsp;&nbsp;&nbsp;&nbsp;
                   <label>  <input type="radio"  name="gender" ng-model="profile.gender" value="1" />女</label>
        	     </div>

                 <div class="form-group  userinfo">
        	  	 	 <label class="label-userinfo"><span class="star">*</span> 联&nbsp;&nbsp;系&nbsp;人：</label>
                     <input type="text" name="fullname"  ng-model="profile.fullname" placeholder="请输入名称" maxlength="12" />
        	  	 </div>

        	  	 <div class="form-group companyName">
        	  	 	 <label class="label-companyName"><span class="star">*</span> 公司名称：</label>
                     <input type="text" name="sms" class="bhz-input form-control" ng-model="profile.company_name" placeholder="请输入您的公司名称" /> 
        	  	 </div>
                 
                <div class="form-group shop-type">
                    <label class="label"><span class="star">*</span> 终端类型：</label>
                    <span class="input-wrap">
                      <select  name="shop-type" class="input-select" ng-model="profile.shop_type">
                        <!--<option value="1">卖场连锁</option>
                        <option value="2">超市(500平米以上)</option>
                        <option value="3">其他终端</option>-->
                        <option value="4">区域正规大型连锁</option>
                        <option value="5">1千平米以上单店及私人连锁</option>
                        <option value="6">500平米-1千平米超市</option>
                        <option value="7">500平米以下超市</option>
                      </select>
                      <i class="icon icon-image icon-arrow-down"></i>
                   </span> 
                </div>

        	  	 <div class="form-group liscence">
        	  	 	 <label class="label-liscence"><span class="star">*</span> 营业执照：</label>
                     <div class="liscence-image-wrap Pos-r" ngf-select ngf-change="changeLiscenceImage($files,'license')" accept="image/*">
                         <div class="add-btn" ng-if="!profile.license_images || profile.license_images.length<1">
                            <span class="icon-plus">+</span>
                            <span>上传照片</span>
                         </div>
                         <img ng-src="{{profile.license_images[0].img_url}}" ng-if="profile.license_images && profile.license_images.length>0">
                     </div>
        	  	 </div>
               <div class="form-group shop">
                     <label class="label-shop">店铺实景图：</label>
                     <a href="javascript:void(0);" class="clear-shop-images" ng-click="clearAllShopImages();" ng-if="profile.shop_images && profile.shop_images.length > 0">清空所有实景图</a>
                     <div class="shop-images-content clearfix">
                       <img ng-src="{{shopImg.img_url}}" ng-repeat="shopImg in profile.shop_images" ng-if="shopImg.img_url" class="shop-item-img">
                       <div class="shop-image-wrap Pos-r" ngf-select ngf-change="changeLiscenceImage($files,'shop')" accept="image/*" multiple="multiple" ng-if="!profile.shop_images || profile.shop_images.length < 10">
                        <div class="add-btn">
                          <span class="icon-plus">+</span>
                          <span>上传照片</span>
                        </div>
                      </div>
                    </div>
                </div>               
                <div class="form-group code">
      	  	 	     <label class="label-code">&nbsp;&nbsp;推&nbsp;&nbsp;荐&nbsp;&nbsp;码：</label>
                   <input type="text" name="sms" class="bhz-input form-control" ng-model="profile.recommended_code" placeholder="请输入推荐人代码" />
      	        </div>
                <div class="btn-wrap">
        			     <a href="javascript:void(0);" class="btn btn-submit" ng-click="submit();">提 交</a>
        			 </div> 
        	  </div>
        </form>
    </div>
  </div>
</div>

<script type="text/ng-template" id="confirmDeleteDialog.html">
  <div class="dialog confirm-dialog" ng-click="$event.stopPropagation();">
    <p class="title ngdialog-text-center" style="margin-left: 40px;">确认清空所有店铺实景图吗？</p>
    <div class="ngdialog-buttons">
      <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog(0);$event.stopPropagation()">取消</button>
      <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="confirm(1);$event.stopPropagation()">确认</button>
    </div>
  </div>
</script>
<script type="text/ng-template" id="loading.html">
  <div class="dialog loading-dialog" >
    <p class="title ngdialog-text-center"  style="margin-left: 120px;">图片正在上传...
      <img src="catalog/view/theme/bhz/m/images/loading.gif"  style="width: 35px;height: 35px;">
    </p>
  </div>
</script>